package com.base.thread;

import com.base.thread.ThreadPool;
import com.base.thread.handler.SysHandler;
import com.base.thread.msg.Packet;

public class ThreadTest {
	
	static ThreadPool threadPool = new ThreadPool("monitorThreadName", "subThreadName_",new SysHandler());	
	
	
	public static void main(String[] args) {
		
//		List<Packet> packetList = new ArrayList<Packet>();
		
//		for (int id = 0 ; id < 10000000 ; id++ ) {
//			Packet packet = new Packet(id,"111");
//			threadPool.addMsg(packet);
//		}
		
		while(true){
			Packet packet = new Packet(1111,"111");
			threadPool.addMsg(packet);
		}
	}
	

}
